<?php

use yii\helpers\Html;
use yii\web\HttpException;

/**
 * @var $this \yii\web\View
 * @var $exception \yii\web\HttpException
 */

$this->title = '出现错误';

$is_404 = $exception instanceof HttpException && $exception->statusCode == 404;
?>
<?php echo Html::encode($exception->getMessage());?>
<?php if (YII_ENV_DEV) {?>
    <pre><?php print_r($exception->getTraceAsString());?></pre>
<?php }?>
